#ifndef LOCALCONFIG_H
#define LOCALCONFIG_H

#include <QObject>
#include <QSettings>
#include <QFile>
#include <QTextStream>
#include <QDateTime>

class LocalConfig : public QObject
{
    Q_OBJECT
public:
    explicit LocalConfig(QObject *parent = nullptr);
    Q_INVOKABLE QString readLocalConfig(QString);//读取本地配置
    Q_INVOKABLE bool writeLocalConfig(QString,QString);//写入本地配置
    Q_INVOKABLE void log(const QString &message);//记录log文件
private:
    QFile m_logFile;
    QTextStream m_stream;
    QString xorEncryptDecrypt(const QString &data, char key);
    void encryptedIniOperation();

signals:
};

#endif // LOCALCONFIG_H
